package com.mer.statistic.service;

import com.mer.statistic.entity.Order;
import com.mer.statistic.mapper.OrderMapper;
import com.mer.statistic.utils.Result;
import com.mer.statistic.vo.OrderVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: iiphase-project-master
 * @description:
 * @author: 薛宁宁
 * @create: 2021-10-18 22:06
 **/
@Service
public class OrderImpl implements OrderService{

    //    查询每天订单费用排行
    @Resource
    private OrderMapper orderMapper;
    @Override
    public Result queryByOrder(Order order) {

        List<OrderVo> orderVo = orderMapper.queryByOrder(order);
//        List<Order> orders = orderDao.queryAllOrderBang(order);
        return new Result(2000,"查询成功",orderVo);
    }
}
